using System;
using UnityEngine;

[Serializable]
public class savetest : MonoBehaviour
{
	public string stringToEdit;

	public savetest()
	{
		stringToEdit = "Hello World";
	}

	public void OnGUI()
	{
		stringToEdit = GUI.TextField(new Rect(10f, 120f, 200f, 20f), stringToEdit, 25);
		if (GUI.Button(new Rect(Screen.width / 2 - 50, Screen.height / 150 - 0, 100f, 22f), "Save"))
		{
			PlayerPrefs.SetString("typed text", stringToEdit);
		}
		if (GUI.Button(new Rect(Screen.width / 2 - 50, Screen.height / 10 - 0, 100f, 22f), "Load"))
		{
			stringToEdit = PlayerPrefs.GetString("typed text");
		}
	}

	public void Main()
	{
	}
}
